package me.send.business.service.mapper;

import me.send.business.service.pojo.Phonenumber;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public abstract interface PhonenumberMapper {
	
	// 调用接口的时候 验证下面的值 2015年6月1日15:04:23
	@Select(value="select count(1) as total from phonenumber where devicenumber = #{devicenumber}")
	public abstract int count_devicenumber(String devicenumber);
	
	
	// 在app启动的时候  调用这个方法 2015年6月1日15:49:51
	@Insert(value="insert into phonenumber (createtime,devicenumber) values(#{createtime},#{devicenumber})")
	public abstract void save(Phonenumber phonenumber);
	
	@Insert(value="insert into phonenumber (createtime,devicenumber,type) values(#{createtime},#{devicenumber},1)")
	public abstract void system_save(Phonenumber phonenumber);
	
}
